#ifndef FILEOPERATION_H
#define FILEOPERATION_H

#include "Exceptions/FileDoesNotExist.h"
#include <fstream>
#include <string>

class FileOperation {
private:
	std::string contents;
	std::string fileName;
public:
	
	/// <summary>
	/// Constructor for this instance specifying the path to the file
	/// to open
	/// </summary>
	/// <param name="fileName">Path to file to open</param>
	FileOperation(std::string fileName);

	/// <summary>
	/// <para>Returns the contents </para>
	/// </summary>
	std::string getContents();

	/// <summary>
	/// <para>
	/// Performs the IO operations necessary to open the file as
	/// specified in the constructor.
	/// </para>
	/// <exception cref='ExceptionFileDoesNotExist' />
	/// </summary>
	void loadContentsFromFile();
};

#endif